package com.taobao.demo.goods;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 商品模块启动类
 */
@SpringBootApplication  // 核心注解：标记为Spring Boot应用，自动配置、扫描组件
@MapperScan("com.taobao.demo.goods.mapper")  // 扫描商品模块的Mapper接口（确保MyBatis能识别）
public class GoodsApplication {
    public static void main(String[] args) {
        // 启动Spring Boot应用
        SpringApplication.run(GoodsApplication.class, args);
    }
}